import { Form, Input, Button } from 'antd-mobile';
import { REQUIRED_RULE } from '@common/constants';

const PrintSettings = () => {
  const [form] = Form.useForm();

  const onFinish = () => {
    
  };

  return (
    <Form
      form={form}
      onFinish={onFinish}
      footer={
        <Button block type="submit" color="primary" size="large">
          保存
        </Button>
      }
    >
      <Form.Header>打印设置</Form.Header>
      <Form.Item name="ip" label="IP地址" rules={REQUIRED_RULE}>
        <Input placeholder="请输入" />
      </Form.Item>
      <Form.Item name="port" label="端口" rules={REQUIRED_RULE}>
        <Input placeholder="请输入" />
      </Form.Item>
    </Form>
  );
};

export default PrintSettings;